package com.px.system.mapper;

import com.px.system.domain.SysUserRoutes;

import java.util.List;

/**
 * 人员航线关联Mapper接口
 * 
 * @author WRJ
 * @date 2024-08
 */
public interface SysUserRoutesMapper 
{
    /**
     * 查询人员航线关联
     * 
     * @param userId 人员航线关联主键
     * @return 人员航线关联
     */
    public SysUserRoutes selectSysUserRoutesByUserId(Long userId);

    /**
     * 查询人员航线关联列表
     * 
     * @param sysUserRoutes 人员航线关联
     * @return 人员航线关联集合
     */
    public List<SysUserRoutes> selectSysUserRoutesList(SysUserRoutes sysUserRoutes);

    /**
     * 新增人员航线关联
     * 
     * @param sysUserRoutes 人员航线关联
     * @return 结果
     */
    public int insertSysUserRoutes(SysUserRoutes sysUserRoutes);

    /**
     * 修改人员航线关联
     * 
     * @param sysUserRoutes 人员航线关联
     * @return 结果
     */
    public int updateSysUserRoutes(SysUserRoutes sysUserRoutes);

    /**
     * 删除人员航线关联
     * 
     * @param userId 人员航线关联主键
     * @return 结果
     */
    public int deleteSysUserRoutesByUserId(Long userId);

    /**
     * 批量删除人员航线关联
     * 
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysUserRoutesByUserIds(Long[] userIds);

    void deleteUserRoleByRoutesId(Long routesId);

    public int batchRoutesUser(List<SysUserRoutes> list);

}
